<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 27662
  Date: 2024/9/3
  Time: 15:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>管理员排班</title>
<%--    医生名称+科室 看病人数 周几 --%>
    <script src="../static/js/jquery.min.js"></script>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Medicamp Responsive Bootstrap Template">
    <meta name="keywords" content="Pixel">
    <meta name="author" content="rkwebdesigns">
    <title>挂号</title>
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/bootstrap.min.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/bootstrap-dropdownhover.min.css" rel="stylesheet">
    <!-- Fonts Awesome -->
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/font-awesome.min.css" rel="stylesheet">
    <!-- Google Fonts -->
    <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,800italic,800,600italic,600,400italic,700,700italic' rel='stylesheet' type='text/css'>
    <!-- animate Effect -->
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/animate.css" rel="stylesheet">
    <!-- Main CSS -->
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/style.css" rel="stylesheet">
    <!-- Responsive CSS -->
    <link href="${pageContext.request.contextPath}/static/css/css_wjh/css_wjh1/responsive.css" rel="stylesheet">
</head>
<body>
<center>
    <h2>新增排班</h2>
    <font style="color: red">${msg}</font>
    <form action="${pageContext.request.contextPath}/admin/addPaiBan.do" method="post" id="f1">
        医生及科室：
        <select name="doctor" id="doctor">

        </select><br/>
        就诊人数：
        <input type="text" name="num1" id="num1"><br/>
        就诊时间：
        <input type="hidden" name="week" id="week">
        <select name="zhouJi" id="zhouJi">
            <option>请选择</option>
            <option>星期一</option>
            <option>星期二</option>
            <option>星期三</option>
            <option>星期四</option>
            <option>星期五</option>
            <option>星期六</option>
            <option>星期日</option>
        </select><br/>
        <input type="submit" value="提交">
    </form>
</center>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/jquery.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/jquery.plugin.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/jquery.isotope.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/jquery.magnific-popup.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/bootstrap-dropdownhover.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/wow.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/waypoints.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/jquery.counterup.min.js"></script>
<script src="${pageContext.request.contextPath}/static/js/js_wjh/js_wjh1/main.js"></script>


<script src="${pageContext.request.contextPath}/static/plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/jQueryUI/jquery-ui.min.js"></script>
<script>
    $.widget.bridge('uibutton', $.ui.button);
</script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/raphael/raphael-min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/morris/morris.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/sparkline/jquery.sparkline.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/knob/jquery.knob.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/daterangepicker/moment.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/daterangepicker/daterangepicker.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/daterangepicker/daterangepicker.zh-CN.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/fastclick/fastclick.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/iCheck/icheck.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/adminLTE/js/app.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/treeTable/jquery.treetable.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/select2/select2.full.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-wysihtml5/bootstrap-wysihtml5.zh-CN.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-markdown/js/bootstrap-markdown.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-markdown/locale/bootstrap-markdown.zh.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-markdown/js/markdown.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-markdown/js/to-markdown.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/ckeditor/ckeditor.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/input-mask/jquery.inputmask.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/input-mask/jquery.inputmask.date.extensions.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/input-mask/jquery.inputmask.extensions.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/chartjs/Chart.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/flot/jquery.flot.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/flot/jquery.flot.resize.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/flot/jquery.flot.pie.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/flot/jquery.flot.categories.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/ionslider/ion.rangeSlider.min.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-slider/bootstrap-slider.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-datetimepicker/bootstrap-datetimepicker.js"></script>
<script src="${pageContext.request.contextPath}/static/plugins/bootstrap-datetimepicker/locales/bootstrap-datetimepicker.zh-CN.js"></script>
</body>
<script>
    $(document).ready(function (){
        //查询医生及科室
        $.get("${pageContext.request.contextPath}/doctor/findDoctorsKe.do",function (data){
            // console.log(data)
            for(i=0;i<data.length;i++){
                $("#doctor").append("<option value='"+data[i].id+'-'+data[i].department1.id+"'>"+data[i].name+'-'+data[i].department1.department_name+"</option>")
                // $("#doctor").append("<option value='"+data[i].name+"'>"+data[i].name+"</option>")
                <%--//根据医生id和周几查找--%>
                <%--var id2=data[i].id--%>
                <%--var week2 = $("#zhouJi option:selected").text();--%>
                <%--$.get("${pageContext.request.contextPath}/admin/findByIdAndWeek.do",{id:id2,week:week2},function (data){--%>
                <%--    console.log(data)--%>
                <%--})--%>
                <%--//查找排班--%>
                <%--$.get("${pageContext.request.contextPath}/admin/findAllNum.do",function (data){--%>
                <%--    // console.log(data)--%>
                <%--})--%>
            }
        })

    })

    $("#zhouJi").change(function (){
        // console.log($("#zhouJi option:selected").text())
        var week1 = $("#zhouJi option:selected").text();
        $("#week").val(week1);
    })


</script>
</html>
